package com.yuanduo_app.event;

import java.util.HashMap;
import java.util.Map;

public class PayEvent {
    private int payType;
    private Map<String, Object> data = new HashMap<>();

    public PayEvent (int payType) {
        this.payType = payType;
    }

    public PayEvent putData (String key, Object value) {
        data.put(key, value);
        return this;
    }

    public Object getData (String key) {
        return data.get(key);
    }

    public int getPayType () {
        return payType;
    }

    public void setPayType (int payType) {
        this.payType = payType;
    }

    public Map<String, Object> getData () {
        return data;
    }

    public void setData (Map<String, Object> data) {
        this.data = data;
    }
}
